<template>
  <div id="app">
      <router-view></router-view>



<!--    <div id="echarts" style="width: 800px;height: 500px;"></div>-->
  </div>
</template>

<script>
import * as echarts from "echarts";
export default {
  name: 'App',
  mounted() {

    this.initChart()
  },
  methods:{
    initChart(){
      var chartDom = document.getElementById('echarts');
      var myChart = echarts.init(chartDom);
      var option;

      option = {
        xAxis: {
          type: 'category',
          data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
          type: 'value'
        },
        series: [
          {
            data: [820, 932, 901, 934, 1290, 1330, 1320],
            type: 'line',
            smooth: true
          }
        ]
      };
      option && myChart.setOption(option);
    }
  }

}
</script>

<style>
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
}

* {
  margin: 0;
  padding: 0;
}

#app {
  margin: 0;
  padding: 0;
}
</style>

